﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Top.Web;
using Top.Web.Api;
using Top.Web.Api.Filters;
using Top.PointStore.Business.Models;

namespace Top.PointStore.Web.Filters
{

    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
    public class AccessAttribute : ApiFilterAttribute
    {
        //public override object OnActionExecuting(WebApiBase api)
        //{
        //    if (api.User == null)// && auth.AuthenticationType=="1"
        //    {
        //        HttpContext.Current.Response.Redirect("/admin/login.html"); 
        //    }
        //    return null;
        //}
    }
}